package com.zebra.base.msgcode;

/**
 * @ClassName AuthErrorCode
 *
 *
 * @Description TODO 权限资源级的系统Bug
 * @Author 消魂钉
 * @Date 6/1 0001 9:22
 */
public enum AuthErrorCode implements MsgCode{

    USER_NAME_EXISTS("20100", "用户名已存在"),
    USER_NAME_NOT_EXISTS("20101", "用户名不存在"),
    PASSWORD_INCORRECT("20102", "密码错误"),
    LOGIN_FAILED("20103", "登录失败，用户名或密码错误"),
    OLD_PASSWORD_ERROR("20104", "旧密码错误"),
    INVALID_REQUEST("20105", "无效请求"),
    INVALID_CLIENT("20006", "无效client_id"),
    INVALID_GRANT("20007", "无效授权"),
    INVALID_SCOPE("20008", "无效scope"),
    INVALID_TOKEN("20009", "无效token"),
    INSUFFICIENT_SCOPE("20010", "授权不足"),
    REDIRECT_URI_MISMATCH("20011", "redirect url不匹配"),
    ACCESS_DENIED("20012", "拒绝访问"),
    METHOD_NOT_ALLOWED("20013", "不支持该方法"),
    SERVER_ERROR("20014", "权限服务错误"),
    UNAUTHORIZED_CLIENT("20015", "未授权客户端"),
    UNAUTHORIZED("20016", "未授权"),
    UNSUPPORTED_RESPONSE_TYPE("20017", " 支持的响应类型"),
    UNSUPPORTED_GRANT_TYPE("20018", "不支持的授权类型");


    private String code;
    private String msg;

    private AuthErrorCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    @Override
    public String getCode() {
        return null;
    }

    @Override
    public String getMsg() {
        return null;
    }
}
